/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.pig4cloud.pig.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 任务
 *
 * @author xiaoxiong
 * @date 2022-04-08 18:01:37
 */
@Data
@TableName("xlm_task")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "任务")
public class XlmTask extends BaseEntity {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="id")
    private Integer id;

    /**
     * 是否带图
     */
    @ApiModelProperty(value="是否带图")
    private Integer ishaveimg;

    /**
     * 多少字
     */
    @ApiModelProperty(value="多少字")
    private Integer littlesize;

    /**
     * 不能点什么
     */
    @ApiModelProperty(value="不能点什么")
    private String nocan;

    /**
     * 开始时间
     */
    @ApiModelProperty(value="开始时间")
    private String starttime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value="结束时间")
    private String endtime;

    /**
     * 数量
     */
    @ApiModelProperty(value="数量")
    private Integer number;

    /**
     * 间隔天数
     */
    @ApiModelProperty(value="间隔天数")
    private Integer spanday;

    /**
     * 店家id
     */
    @ApiModelProperty(value="店家id")
    private Integer shopid;

    /**
     * 上下架状态1上架2下架0未发布
     */
    @ApiModelProperty(value="上下架状态1上架2下架0未发布")
    private Integer status;

    /**
     * 只能点什么
     */
    @ApiModelProperty(value="只能点什么")
    private String can;

    /**
     * 排名等级
     */
    @ApiModelProperty(value="排名等级")
    private Integer level;

    /**
     * 任务发布分类1美团2饿了么0未知
     */
    @ApiModelProperty(value="任务发布分类1美团2饿了么0未知")
    private Integer tasktype;

    /**
     * 删除
     */
    @ApiModelProperty(value="删除")
    private Integer deleted;

    /**
     * 返现金额
     */
    @ApiModelProperty(value="返现金额")
    private Integer returnmoney;

    /**
     * 达标金额
     */
    @ApiModelProperty(value="达标金额")
    private Integer money;

    /**
     * 店家标题
     */
    @ApiModelProperty(value="店家标题")
    @TableField(exist = false)
    private String title;

    /**
     * 宣传图
     */
    @ApiModelProperty(value="宣传图")
    @TableField(exist = false)
    private String img;

    /**
     * 背景图
     */
    @ApiModelProperty(value="背景图")
    @TableField(exist = false)
    private String bgimg;

    /**
     * 商标图
     */
    @ApiModelProperty(value="商标图")
    @TableField(exist = false)
    private String bqimg;

    /**
     * 商店类型1美团2饿了么
     */
    @ApiModelProperty(value="商店类型1美团2饿了么")
    @TableField(exist = false)
    private Integer type;

    /**
     * 店家描述
     */
    @ApiModelProperty(value="店家描述")
    @TableField(exist = false)
    private String content;

    /**
     * 维度
     */
    @ApiModelProperty(value="维度")
    @TableField(exist = false)
    private String longitude;

    /**
     * 经度
     */
    @ApiModelProperty(value="经度")
    @TableField(exist = false)
    private String latitude;

    /**
     * 距离
     */
    @ApiModelProperty(value="距离")
    @TableField(exist = false)
    private String distance;

    /**
     * 距离
     */
    @ApiModelProperty(value="距离米")
    @TableField(exist = false)
    @JsonIgnore
    private double distancem;

    /**
     * 城市
     */
    @ApiModelProperty(value="城市")
    @TableField(exist = false)
    private String city;

    /**
     * 区域
     */
    @ApiModelProperty(value="区域")
    @TableField(exist = false)
    private String area;

    /**
     * 详细地址
     */
    @ApiModelProperty(value="详细地址")
    @TableField(exist = false)
    private String address;

    /**
     * 人均
     */
    @ApiModelProperty(value="人均")
    @TableField(exist = false)
    private Integer per;
}
